package truedano.truedanostock;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class MyDBSetting extends SQLiteOpenHelper {
	String DB_ITEMS = 
	"_ID INTEGER PRIMARY KEY" +
	",DEL_SMALL_AND_BIG Byte default 1" +
	",YEAR_TYPE Integer default 7" +
	",NAME varchar";
	public static int VERSION=1;
	
	public MyDBSetting(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
	}
	
	public MyDBSetting(Context context,String name){
		this(context, name, null, VERSION);
	}
	
	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("create table if not exists setting00("+DB_ITEMS+")");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}


}
